/*
 * acm1394.c
 *
 *  Created on: 24 Mar 2010
 *      Author: xuxu
 */

#include<stdio.h>
#include<string.h>
#define PI 3.14159
int main()
{
	char s[20],e[20];
	double radius,gallon,degress;
	double length,glength;
	while(scanf("%s",s))
	{
		if(0==strcmp(s,"ENDOFINPUT"))
			break;
		scanf("%lf%lf%lf",&radius,&gallon,&degress);
		if(degress>180)
			degress=360.0-degress;
		length=2*2*PI*radius*degress/360.0;
		glength=5*gallon;
		if(length>glength)
			printf("NO %d\n",(int)glength);
		else
			printf("YES %d\n",(int)((glength-length)/5.0));
		scanf("%s",e);
	}
	return 0;
}
